package com.keda.springdata_elasticsearch.entity;

import lombok.Data;

import java.util.Date;

/**
 * @author keda
 */
@Data
public class OperationErrorLog {

    /**
     * 根据时间唯一uuid
     */
    private String uuId;
    /**
     * 时间
     */
    private Date createdTime;

    /**
     * 操作人
     */
    private String createdUser;

    /**
     * 模块
     */
    private String moudle;

    /**
     * 类型
     */
    private String errorType;

    /**
     * 错误码
     */
    private String errorCode;

    /**
     * 错误内容
     */
    private String content;

    /**
     * 解决方案
     */
    private String solution;
    public Date getCreatedTime() {
        if (this.createdTime != null) {
            return new Date(this.createdTime.getTime());
        } else {
            return null;
        }
    }

    public void setCreatedTime(Date createdTime) {
        if (createdTime != null) {
            this.createdTime = (Date) createdTime.clone();
        } else {
            this.createdTime = null;
        }
    }


}
